/* 升级套餐对话框样式 */
.upgrade-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.dialog-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.dialog-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    background: white;
    border-radius: 16px;
    padding: 48px 32px 32px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    overflow: visible;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 当对话框显示时的样式 */
.upgrade-dialog[style*="display: flex"] .dialog-content {
    transform: scale(1);
    opacity: 1;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dialog-header h3 {
    font-size: 24px;
    color: #2d3436;
    font-weight: 600;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f8f9fa;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* 套餐卡片容器 */
.plans-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
    max-width: 100%;
    overflow: visible;
}

/* 套餐卡片样式 */
.plan-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    min-width: 260px;
    overflow: visible;
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.plan-header h4 {
    font-size: 20px;
    color: #2d3436;
    margin-bottom: 16px;
}

.price {
    font-size: 32px;
    font-weight: bold;
    color: #7F5BFF;
}

.price span {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4949 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.plan-features {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-size: 14px;
}

.feature i {
    color: #7F5BFF;
    font-size: 16px;
}

.purchase-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.purchase-btn:not(.premium):not(.enterprise) {
    background: #f8f9fa;
    color: #7F5BFF;
    border: 2px solid #7F5BFF;
}

.purchase-btn.premium {
    background: linear-gradient(135deg, #7F5BFF 0%, #5B8DFF 100%);
    color: white;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 支付方式样式 */
.payment-methods {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.payment-methods h4 {
    font-size: 18px;
    color: #2d3436;
    margin-bottom: 16px;
}

.payment-options {
    display: flex;
    gap: 16px;
}

.payment-option {
    padding: 12px 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option i {
    font-size: 24px;
}

.payment-option[data-type="alipay"] i {
    color: #1677FF;
}

.payment-option[data-type="wechat"] i {
    color: #07C160;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .plans-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .plans-container {
        grid-template-columns: 1fr;
    }
} 